aim = 200

arr = [1,2,5,10,50,100,200]
ans = [1] +[0] * aim

for i in arr:
    for k in range(i,aim+1):
        ans[k] += ans[k - i]

print(ans[aim])